package com.me.study.designPatterns.bDecorator;

/**
 * 装饰器模式：抽象装饰类--持有组件的引用
 *
 * @author ME
 * @date   2019/4/4
 */
public abstract class AbstractDecortor implements Someone {

    private Someone component;

    public AbstractDecortor(Someone component) {
        this.component = component;
    }

    @Override
    public void say() {
        this.component.say();
    }
}
